Skip to main content

All Questions

2votes
1answer
1kviews

Applying initialization-on-demand holder idiom at variable level rather than class

I was looking for the idiomatic way to implement thread-safe lazy initialization for a configuration collection retrieved from the DB inside a Spring bean. I decided to adapt the initialisation-on-...
Adam's user avatar
  • 187

close